// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : http://ekoindri.com/radphp/research/soap_sis_entry_siswa_absensi.php?wsdl
//  >Import : http://ekoindri.com/radphp/research/soap_sis_entry_siswa_absensi.php?wsdl>0
// Encoding : ISO-8859-1
// Version  : 1.0
// (1/1/2012 3:36:05 PM - - $Rev: 28374 $)
// ************************************************************************ //

unit soap_sis_entry_siswa_absensi;

interface

uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;

type

  // ************************************************************************ //
  // The following types, referred to in the WSDL document are not being represented
  // in this file. They are either aliases[@] of other types represented or were referred
  // to but never[!] declared in the document. The types from the latter category
  // typically map to predefined/known XML or Embarcadero types; however, they could also 
  // indicate incorrect WSDL documents that failed to declare or import a schema type.
  // ************************************************************************ //
  // !:string          - "http://www.w3.org/2001/XMLSchema"[Gbl]
  // !:integer         - "http://www.w3.org/2001/XMLSchema"[Gbl]
  // !:dateTime        - "http://www.w3.org/2001/XMLSchema"[Gbl]

  TInfoServer          = class;                 { "http://localhost"[GblCplx] }
  TInfoSiswa           = class;                 { "http://localhost"[GblCplx] }
  TInfoGuru            = class;                 { "http://localhost"[GblCplx] }
  TDataMapelRow        = class;                 { "http://localhost"[GblCplx] }
  TInfoAbsensiStatus   = class;                 { "http://localhost"[GblCplx] }
  TInfoAbsensi         = class;                 { "http://localhost"[GblCplx] }



  // ************************************************************************ //
  // XML       : TInfoServer, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoServer = class(TRemotable)
  private
    Fserver_host: string;
    Fserver_database: string;
    Fserver_username: string;
    Fserver_password: string;
  published
    property server_host:     string  read Fserver_host write Fserver_host;
    property server_database: string  read Fserver_database write Fserver_database;
    property server_username: string  read Fserver_username write Fserver_username;
    property server_password: string  read Fserver_password write Fserver_password;
  end;



  // ************************************************************************ //
  // XML       : TInfoSiswa, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoSiswa = class(TRemotable)
  private
    FID: Int64;
    FSISWA_KODE: string;
    FSISWA_NAMA_AWAL: string;
    FSISWA_NAMA_TENGAH: string;
    FSISWA_NAMA_AKHIR: string;
  published
    property ID:                Int64   read FID write FID;
    property SISWA_KODE:        string  read FSISWA_KODE write FSISWA_KODE;
    property SISWA_NAMA_AWAL:   string  read FSISWA_NAMA_AWAL write FSISWA_NAMA_AWAL;
    property SISWA_NAMA_TENGAH: string  read FSISWA_NAMA_TENGAH write FSISWA_NAMA_TENGAH;
    property SISWA_NAMA_AKHIR:  string  read FSISWA_NAMA_AKHIR write FSISWA_NAMA_AKHIR;
  end;

  TInfoDaftarSiswa = array of TInfoSiswa;       { "http://localhost"[GblCplx] }


  // ************************************************************************ //
  // XML       : TInfoGuru, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoGuru = class(TRemotable)
  private
    FID: Int64;
    FGURU_KODE: string;
    FGURU_NAMA_AWAL: string;
    FGURU_NAMA_TENGAH: string;
    FGURU_NAMA_AKHIR: string;
  published
    property ID:               Int64   read FID write FID;
    property GURU_KODE:        string  read FGURU_KODE write FGURU_KODE;
    property GURU_NAMA_AWAL:   string  read FGURU_NAMA_AWAL write FGURU_NAMA_AWAL;
    property GURU_NAMA_TENGAH: string  read FGURU_NAMA_TENGAH write FGURU_NAMA_TENGAH;
    property GURU_NAMA_AKHIR:  string  read FGURU_NAMA_AKHIR write FGURU_NAMA_AKHIR;
  end;

  TInfoDaftarGuru = array of TInfoGuru;         { "http://localhost"[GblCplx] }


  // ************************************************************************ //
  // XML       : TDataMapelRow, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TDataMapelRow = class(TRemotable)
  private
    FID: Int64;
    FMAPEL_KODE: string;
    FMAPEL_NAMA: string;
    FMAPEL_JENIS: string;
    FMAPEL_KELAS: string;
  published
    property ID:          Int64   read FID write FID;
    property MAPEL_KODE:  string  read FMAPEL_KODE write FMAPEL_KODE;
    property MAPEL_NAMA:  string  read FMAPEL_NAMA write FMAPEL_NAMA;
    property MAPEL_JENIS: string  read FMAPEL_JENIS write FMAPEL_JENIS;
    property MAPEL_KELAS: string  read FMAPEL_KELAS write FMAPEL_KELAS;
  end;

  TDataMapel = array of TDataMapelRow;          { "http://localhost"[GblCplx] }


  // ************************************************************************ //
  // XML       : TInfoAbsensiStatus, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoAbsensiStatus = class(TRemotable)
  private
    FID: Int64;
    FABSENSI_KODE: string;
    FABSENSI_NAMA: string;
  published
    property ID:           Int64   read FID write FID;
    property ABSENSI_KODE: string  read FABSENSI_KODE write FABSENSI_KODE;
    property ABSENSI_NAMA: string  read FABSENSI_NAMA write FABSENSI_NAMA;
  end;

  TInfoDaftarAbsensiStatus = array of TInfoAbsensiStatus;   { "http://localhost"[GblCplx] }


  // ************************************************************************ //
  // XML       : TInfoAbsensi, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoAbsensi = class(TRemotable)
  private
    FID: Int64;
    FSISWA_ID: Int64;
    FMAPEL_ID: Int64;
    FGURU_ID: Int64;
    FABSENSI_ID: Int64;
    FABSENSI_TGL: TXSDateTime;
    FABSENSI_KETERANGAN: string;
  public
    destructor Destroy; override;
  published
    property ID:                 Int64        read FID write FID;
    property SISWA_ID:           Int64        read FSISWA_ID write FSISWA_ID;
    property MAPEL_ID:           Int64        read FMAPEL_ID write FMAPEL_ID;
    property GURU_ID:            Int64        read FGURU_ID write FGURU_ID;
    property ABSENSI_ID:         Int64        read FABSENSI_ID write FABSENSI_ID;
    property ABSENSI_TGL:        TXSDateTime  read FABSENSI_TGL write FABSENSI_TGL;
    property ABSENSI_KETERANGAN: string       read FABSENSI_KETERANGAN write FABSENSI_KETERANGAN;
  end;

  TInfoDaftarAbsensi = array of TInfoAbsensi;   { "http://localhost"[GblCplx] }

  // ************************************************************************ //
  // Namespace : http://localhost
  // soapAction: http://ekoindri.com/radphp/research/soap_sis_entry_siswa_absensi.php/%operationName%
  // transport : http://schemas.xmlsoap.org/soap/http
  // style     : rpc
  // binding   : SERVICE_ENTRY_SISWA_ABSENSIBinding
  // service   : SERVICE_ENTRY_SISWA_ABSENSI
  // port      : SERVICE_ENTRY_SISWA_ABSENSIPort
  // URL       : http://ekoindri.com/radphp/research/soap_sis_entry_siswa_absensi.php
  // ************************************************************************ //
  SERVICE_ENTRY_SISWA_ABSENSIPortType = interface(IInvokable)
  ['{FA03FD96-A907-5D3B-BD9B-8E9607AF12C7}']
    function  DATA_SISWA_GURU_MAPEL_ABSENSI(const connection_string: TInfoServer; out siswalist: TInfoDaftarSiswa; out gurulist: TInfoDaftarGuru; out mapellist: TDataMapel; out absensistatuslist: TInfoDaftarAbsensiStatus
                                            ): string; stdcall;
    function  SISWA_SIMPAN_ABSENSI_DATASET(const connection_string: TInfoServer; const daftarabsensi: TInfoDaftarAbsensi): string; stdcall;
  end;

function GetSERVICE_ENTRY_SISWA_ABSENSIPortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): SERVICE_ENTRY_SISWA_ABSENSIPortType;


implementation
  uses SysUtils;

function GetSERVICE_ENTRY_SISWA_ABSENSIPortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): SERVICE_ENTRY_SISWA_ABSENSIPortType;
const
  defWSDL = 'http://ekoindri.com/radphp/research/soap_sis_entry_siswa_absensi.php?wsdl';
  defURL  = 'http://ekoindri.com/radphp/research/soap_sis_entry_siswa_absensi.php';
  defSvc  = 'SERVICE_ENTRY_SISWA_ABSENSI';
  defPrt  = 'SERVICE_ENTRY_SISWA_ABSENSIPort';
var
  RIO: THTTPRIO;
begin
  Result := nil;
  if (Addr = '') then
  begin
    if UseWSDL then
      Addr := defWSDL
    else
      Addr := defURL;
  end;
  if HTTPRIO = nil then
    RIO := THTTPRIO.Create(nil)
  else
    RIO := HTTPRIO;
  try
    Result := (RIO as SERVICE_ENTRY_SISWA_ABSENSIPortType);
    if UseWSDL then
    begin
      RIO.WSDLLocation := Addr;
      RIO.Service := defSvc;
      RIO.Port := defPrt;
    end else
      RIO.URL := Addr;
  finally
    if (Result = nil) and (HTTPRIO = nil) then
      RIO.Free;
  end;
end;


destructor TInfoAbsensi.Destroy;
begin
  SysUtils.FreeAndNil(FABSENSI_TGL);
  inherited Destroy;
end;

initialization
  InvRegistry.RegisterInterface(TypeInfo(SERVICE_ENTRY_SISWA_ABSENSIPortType), 'http://localhost', 'ISO-8859-1');
  InvRegistry.RegisterDefaultSOAPAction(TypeInfo(SERVICE_ENTRY_SISWA_ABSENSIPortType), 'http://ekoindri.com/radphp/research/soap_sis_entry_siswa_absensi.php/%operationName%');
  InvRegistry.RegisterReturnParamNames(TypeInfo(SERVICE_ENTRY_SISWA_ABSENSIPortType), 'return;return');
  RemClassRegistry.RegisterXSClass(TInfoServer, 'http://localhost', 'TInfoServer');
  RemClassRegistry.RegisterXSClass(TInfoSiswa, 'http://localhost', 'TInfoSiswa');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TInfoDaftarSiswa), 'http://localhost', 'TInfoDaftarSiswa');
  RemClassRegistry.RegisterXSClass(TInfoGuru, 'http://localhost', 'TInfoGuru');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TInfoDaftarGuru), 'http://localhost', 'TInfoDaftarGuru');
  RemClassRegistry.RegisterXSClass(TDataMapelRow, 'http://localhost', 'TDataMapelRow');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TDataMapel), 'http://localhost', 'TDataMapel');
  RemClassRegistry.RegisterXSClass(TInfoAbsensiStatus, 'http://localhost', 'TInfoAbsensiStatus');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TInfoDaftarAbsensiStatus), 'http://localhost', 'TInfoDaftarAbsensiStatus');
  RemClassRegistry.RegisterXSClass(TInfoAbsensi, 'http://localhost', 'TInfoAbsensi');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TInfoDaftarAbsensi), 'http://localhost', 'TInfoDaftarAbsensi');

end.